<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>工程单据管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bill/bizProjectBill/">工程单据列表</a></li>
		<shiro:hasPermission name="bill:bizProjectBill:edit"><li><a href="${ctx}/bill/bizProjectBill/form">工程单据添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="bizProjectBill" action="${ctx}/bill/bizProjectBill/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>工程中心：</label>
				<form:input path="proName" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>运行模式：</label>
				<form:select path="proType" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('proType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>开工时间：</label>
				<input name="proStartTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${bizProjectBill.proStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li><label>建成时间：</label>
				<input name="proEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${bizProjectBill.proEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li><label>负责人：</label>
				<form:select path="responserId" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>工程中心编码</th>
				<th>工程中心名称</th>
				<th>运行模式</th>
				<th>地区名称</th>
				<th>分类名称</th>
				<th>细分领域名称</th>
				<th>主管单位负责人</th>
				<th>批复单位</th>
				<th>批复日期</th>
				<th>批复文号</th>
				<shiro:hasPermission name="bill:bizProjectBill:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bizProjectBill">
			<tr>
				<td><a href="${ctx}/bill/bizProjectBill/form?opt=detail&id=${bizProjectBill.id}">
					${bizProjectBill.id}
				</a></td>
				<td>
					${bizProjectBill.proName}
				</td>
				<td>
					${fns:getDictLabel(bizProjectBill.proType, 'proType', '')}
				</td>
				<td>
					${bizProjectBill.provinceName}
				</td>
				<td>
					${bizProjectBill.categoryName}
				</td>
				<td>
					${bizProjectBill.subCategoryName}
				</td>
				<td>
					${fns:getDictLabel(bizProjectBill.responserId, '', '')}
				</td>
				<td>
					${bizProjectBill.applyCompany}
				</td>
				<td>
					<fmt:formatDate value="${bizProjectBill.applyDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${bizProjectBill.applyFileNo}
				</td>
				<shiro:hasPermission name="bill:bizProjectBill:edit"><td>
    				<a href="${ctx}/bill/bizProjectBill/form?id=${bizProjectBill.id}">审批</a>
					<a href="${ctx}/bill/bizProjectBill/delete?id=${bizProjectBill.id}" onclick="return confirmx('确认要删除该工程单据吗？', this.href)">撤回</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>